#!/usr/bin/env python

"""
<filename>.py
<description>
"""

__version__     = "1.0.0"
__author__      = "David Qiu"
__email__       = "david@davidqiu.com"
__website__     = "www.davidqiu.com"
__copyright__   = "Copyright (C) 2017, David Qiu. All rights reserved."


import tensorflow as tf
import numpy as np


if __name__ == '__main__':
  # data...

  # definition: model
  with tf.name_scope('model'):
    # model...

    # summary
    tf.summary.scalar('scalar', scalar)

  # definition: summary
  merge_summaries = tf.summary.merge_all()

  # execution...
  with tf.Session() as sess:
    summary_writer = tf.summary.FileWriter('./logs/<dirname>', sess.graph)

    init = tf.global_variables_initializer()
    sess.run(init)

    epochs = 32
    for ep in range(epochs):
      # training...

      # summary
      merged_summary = sess.run(merge_summaries)
      summary_writer.add_summary(merged_summary, ep)


